import tkinter
# entry 输入文字的条子
window = tkinter.Tk()
window.title = ('窗口名字')
window.geometry("200x200")  # 设置窗口尺寸

def insert_point():
    var = e.get()
    t.insert('insert',var)

def insert_end():
    var = e.get()
    t.insert('end',var)
    # t.insert(1.1,var)         1.1插入到第一行的第一位


e = tkinter.Entry(window,show='*',)   #所有都显示*
e.pack()
e1 = tkinter.Entry(window,show='',)
e1.pack()

b1 = tkinter.Button(window, text='insert point', width=15, height=2, bg='green',command=insert_point)
b1.pack()
b2 = tkinter.Button(window, text='insert end', width=15, height=2, bg='green',command=insert_end)
b2.pack()

t=tkinter.Text(window,height=2)
t.pack()

window.mainloop()




